class CreatePosters < ActiveRecord::Migration
  def self.up
    create_table :posters do |t|
      t.column :game_id,  :integer, :limit => 8
      t.column :small,    :string,  :limit => 255                    #小画报地址
      t.column :big,      :string,  :limit => 255                    #大画报地址
      t.column :sequence, :integer, :limit => 5, :default => 1000    #画报顺序
    end
  end

  def self.down
    drop_table :posters
  end
end
